num = input('请输入：')
num = num[::-1]
for n in num:
    print(n,end=' ')